/**
 * 常见问题列表单元组件
 */

Component({
  data: {
    active: false,
  },
  props: {
    title: '',
    border: false,
    index: 0,
    onTap: () => {},
  },
  methods: {
    onTap(e) {
      this.props.onTap(e);
    },
    handleTouchStart() {
      this.setData({ active: true });
    },
    handleTouchEnd() {
      this.setData({ active: false });
    }
  },
});
